package com.it.rabbitmqwithjiang.Listener;



import com.it.rabbitmqwithjiang.Dao.MessageDao;
import com.rabbitmq.client.Channel;
import org.springframework.amqp.core.*;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;




@Component
public class DefaultDirectListener1 {
	
	@RabbitListener(queues = "defaultDirect")
	public void DefaultDirectMessage(MessageDao messageDao) throws Exception {
		System.out.println("队列监听器defaultDirect1号收到消息"+messageDao.toString());
	}
}
